<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Spring Boot Web应用</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            line-height: 1.6;
        }
        .container {
            text-align: center;
            margin-top: 50px;
        }
        .api-info {
            margin-top: 30px;
            text-align: left;
            background-color: #f5f5f5;
            padding: 20px;
            border-radius: 5px;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1 th:text="${message}"></h1>
        <p>当前时间: <span th:text="${currentTime}"></span></p>
        
        <div class="api-info">
            <h2>可用API接口</h2>
            <ul>
                <li>GET <code>/api/greet</code> - 问候语，可添加参数?name=你的名字</li>
                <li>GET <code>/api/user/{id}</code> - 获取用户信息，例如/api/user/1</li>
                <li>POST <code>/api/echo</code> - 回声服务，发送JSON: {"message": "内容"}</li>
            </ul>
        </div>
    </div>
</body>
</html>
